import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './plugins/vant' //引入vant
import 'vant/lib/index.less'
import jutils from 'jutils-src'

import _ from 'lodash'
Vue.prototype._ = _




import '@/assets/css/index.css' //引入全局样式
import '@/assets/js/phone'

import VueCookies from 'vue-cookies' //引入cookies


import VueTouch from 'vue-touch' //引入滑动模板插件
Vue.use(VueTouch, { name: 'v-touch' })
Vue.use(VueCookies)
    // Vue.$cookies.config('60s')

//定义全局过滤器
Vue.filter('fnDate', function(date) {
    return jutils.formatDate(new Date(date * 1000), "YYYY-MM-DD")
})

Vue.filter('fnDateTime', function(date) {
    return jutils.formatDate(new Date(date * 1000), "HH:ii:ss")
})


Vue.config.productionTip = false

new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')